package com.zhonghui.service;

import com.zhonghui.common.core.result.FwResult;
import com.zhonghui.dto.*;
import com.zhonghui.model.User;

import java.util.Map;

/**
 * @description 用户信息-业务接口
 * @author zhonghui
 * @date 2020-11-29
 */
public interface UserService {


    FwResult<Map<String, Object>> passwordLogin(PhoneLoginDto phoneLoginDto);

    FwResult<User> logout(String token);


    FwResult getUserList(PageDto pageDto);

    FwResult register(UserMailRegisterDto user);

    FwResult verifyMail(VerifyEmailDto verificationEmail);

    void generateCode(String email, String name);

    FwResult<Map<String, Object>> emailLogin(VerifyEmailDto emailDto);

    FwResult resetPassword(ResetPasswordDto dto);

    FwResult enableUser(EnableUserDto dto);
}
